\backmatter

\let\hyperlink=\oldhyperlink % Restore old hyperlink behaviour
\cleardoublepage
\markboth{Index}{Index}
\addcontentsline{toc}{chapter}{Index}
\printindex

\addcontentsline{toc}{chapter}{Code index}
\printindex[code]
